/**
 * 表单数据
 */
export function useFormData() {
    const dataRef = ref<Recordable>({})

    const setFormData = (data: Recordable) => {
        dataRef.value = { ...data }
    }

    const getFormData = () => {
        return dataRef.value
    }

    return { formData: dataRef, setFormData, getFormData }
}
